import { createStore } from 'vuex'

export default createStore({
  state: {
    cartCoount: 0
  },
  mutations: {
    addCart(state, payload) {
      state.cartCount = payload.count
    }
  },
  actions: { 
    // async updateCart({ commit }) {//更新购物车

    // }
  },
  modules: {
  }
})
